Skip to content

Add support for round room paint calculations#23

Merged
durimkryeziu merged 1 commit into
mainfrom
paint-calculator-round-room
May 24, 2026
Merged

Add support for round room paint calculations#23
durimkryeziu merged 1 commit into
mainfrom
paint-calculator-round-room

Conversation

@durimkryeziu
Copy link
Copy Markdown
Owner

Refactored RoomDimensions from a concrete record to a sealed interface to support multiple room shapes. Created RectangularRoom and RoundRoom implementations, with RoundRoom calculating area as πr². Added shape selection menu to PaintCalculator to prompt for room type before collecting dimensions.

Refactored RoomDimensions from a concrete record to a sealed interface
to support multiple room shapes. Created RectangularRoom and RoundRoom
implementations, with RoundRoom calculating area as πr². Added shape
selection menu to PaintCalculator to prompt for room type before
collecting dimensions.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 24, 2026

Warning

Review limit reached

@durimkryeziu, we couldn't start this review because you've used your available PR reviews for now.

Your plan currently allows 1 review/hour. Refill in 23 minutes and 9 seconds.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more review capacity refills, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 57786c79-5efa-4dd4-b8a4-eca5fabbed66

📥 Commits

Reviewing files that changed from the base of the PR and between 2a8a182 and 5a09894.

📒 Files selected for processing (8)
  • paint-calculator/src/main/java/dev/delivercraft/paint/PaintCalculator.java
  • paint-calculator/src/main/java/dev/delivercraft/paint/RectangularRoom.java
  • paint-calculator/src/main/java/dev/delivercraft/paint/RoomDimensions.java
  • paint-calculator/src/main/java/dev/delivercraft/paint/RoundRoom.java
  • paint-calculator/src/test/java/dev/delivercraft/paint/MainTest.java
  • paint-calculator/src/test/java/dev/delivercraft/paint/PaintCalculatorTest.java
  • paint-calculator/src/test/java/dev/delivercraft/paint/PaintEstimatorTest.java
  • paint-calculator/src/test/java/dev/delivercraft/paint/RoundRoomTest.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch paint-calculator-round-room

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.33%. Comparing base (2a8a182) to head (5a09894).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #23      +/-   ##
============================================
+ Coverage     77.41%   78.33%   +0.91%     
- Complexity      116      123       +7     
============================================
  Files            33       34       +1     
  Lines           403      420      +17     
  Branches         24       25       +1     
============================================
+ Hits            312      329      +17     
  Misses           84       84              
  Partials          7        7              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@durimkryeziu durimkryeziu merged commit 69fc874 into main May 24, 2026
2 checks passed
@durimkryeziu durimkryeziu deleted the paint-calculator-round-room branch May 24, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants